package jsyf.oa.facade.wreport;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * Created by Administrator on 2017/12/27 0027.
 */
@Path("/wReportCusVisitService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface WReportCusVisitFacade {
    @Path("/save")
    String save(String jsonData);

    @Path("/update")
    Integer update(String jsonData);

    @Path("/getCustomerVisitById")
    JSONObject getCustomerVisitById(String id);

    @Path("/getLatestCustomerVisitByTel")
    JSONObject getLatestCustomerVisitByTel(String userId, String visitMode, String tel);

    @Path("/getCustomerListById")
    List<JSONObject> getCustomerListById(String userId, String reportDate, String visitMode);

    @Path("/faceInApp")
    String faceInApp(String jsonData);

    @Path("/faceOutApp")
    String faceOutApp(String jsonData);

    @Path("/removeApp")
    String removeApp(String jsonData);

    @Path("/accompaniedVisitCusOutApp")
    String accompaniedVisitCusOutApp(String jsonData);

    @Path("/accompaniedVisitCus")
    List<JSONObject> accompaniedVisitCus(String jsonData);

    @Path("/selfVisitCus")
    List<JSONObject> selfVisitCus(String jsonData);
}
